Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(941) Hide details if there is no change history #9985

Conversation

pezholio
Copy link
Contributor

https://trello.com/c/REP99FWH/941-empty-details-of-changes-in-change-history

Sometimes change history can be present, but doesn’t have items within it. To get around this, we move the logic to the component and only render the details if there are any details rendered.

Additionally, I’ve changed the version factory to build, rather than create so we don’t have to create versions in the database unnecessarily

@pezholio pezholio force-pushed the content-modelling/941-empty-details-of-changes-in-change-history branch from cc76dff to 12c3c6e Compare February 26, 2025 10:56
Sometimes change history can be present, but doesn’t have items within
it. To get around this, we move the logic to the component and only
render the details if there are any details rendered.

Additionally, I’ve changed the version factory to build, rather than
create so we don’t have to create versions in the database
unneccessarily
@pezholio pezholio force-pushed the content-modelling/941-empty-details-of-changes-in-change-history branch from 12c3c6e to d84dec8 Compare February 26, 2025 11:08
@pezholio pezholio requested a review from Harriethw February 26, 2025 15:10
Copy link
Contributor

@Harriethw Harriethw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@pezholio pezholio merged commit b196ac2 into main Feb 26, 2025
19 checks passed
@pezholio pezholio deleted the content-modelling/941-empty-details-of-changes-in-change-history branch February 26, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants